package com.haizhi.crm.api.controller.search;

import com.haizhi.crm.api.constant.MediaType;
import com.haizhi.crm.common.model.Response;
import com.haizhi.crm.search.model.GdbSearchQo;
import com.haizhi.crm.search.service.GdbSearchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chengmo on 2018/5/15.
 */
@Api(description = "[图搜索]通用接口" )
@RestController
@RequestMapping("/search/gdb" )
public class GdbSearchController {

    @Autowired
    private GdbSearchService gdbSearchService;

    @ApiOperation(value = "关联关系", notes = "8种标准图谱" )
    @PostMapping(path = "/standardAtlasExpand", consumes = MediaType.APP_JSON, produces = MediaType.APP_JSON)
    public Response standardAtlasExpand(@RequestBody GdbSearchQo searchQo) {
        return gdbSearchService.standardAtlasExpand(searchQo);
    }
}
